]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
endSessionDialog: Recognize scheduled updates in the Power Off dialog
authorMilan Crha <mcrha@redhat.com>
Wed, 22 Apr 2026 15:04:28 +0000 (17:04 +0200)
committerMarge Bot <marge-bot@gnome.org>
Sat, 25 Apr 2026 13:08:16 +0000 (13:08 +0000)
The Power Off dialog should show a checkbox to install (or not) a scheduled
update, but I missed it in my previous https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4185

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4188>

js/ui/endSessionDialog.js

index e803785d74ec3be4c8c30f2132e047b05d2e7f63..ee26bffb1d1c2f2af765a8883edc65cb32abed03 100644 (file)
@@ -713,7 +713,7 @@ class EndSessionDialog extends ModalDialog.ModalDialog {
             this._loadSessions().catch(logError);
 
         _setCheckBoxLabel(this._checkBox, dialogContent.checkBoxText || '');
-        this._checkBox.visible = dialogContent.checkBoxText && this._updatePrepared;
+        this._checkBox.visible = dialogContent.checkBoxText && (this._updatePrepared || this._updateScheduled);
 
         this._checkBox.checked = this._checkBox.visible && !this._isBatteryLow();